﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Text;

namespace GuestBook_Lib
{
    public class Settings
    {
        public bool ShowWebsite()
        {
            return Preferences.Default.Show_Website;
        }
        public void ShowWebsite(bool Val)
        {
            Preferences.Default.Show_Website = Val;
            //MessageBox.Show(Preferences.Default.Show_Website.ToString());
            Save();
            //MessageBox.Show(Preferences.Default.Show_Website.ToString());
        }
        public void ShowScouting(bool Val)
        {
            Preferences.Default.Scouting_Show = Val;
            Save();
        }
        public bool ShowScouting()
        {
            return Preferences.Default.Scouting_Show;
        }
        public bool Show_Part()
        {
            return Preferences.Default.Show_Part_Lookup;
        }
        public void Show_Part(bool val)
        {
            Preferences.Default.Show_Part_Lookup = val;
            Save();
        }
        public void Survey(bool val)
        {
            Preferences.Default.Survey = val;
            Save();
        }
        public bool Survey()
        {
            return Preferences.Default.Survey;
        }
        public void Reset()
        {
            Preferences.Default.Reset();
            Save();

        }
        internal void Save()
        {
            Preferences.Default.Save();
            Preferences.Default.Reload();
        }
    }
}
